package com.huirui.server.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 管理员登录请求数据传输对象
 *
 * @author yourName
 * @date 2025-10-05
 */
@Data
@Schema(name = "AdminLoginDto", description = "管理员登录请求参数")
public class AdminLoginDto {

    /**
     * 登录账号
     */
    @NotBlank(message = "登录账号不能为空")
    @Schema(description = "登录账号", required = true, example = "admin", minLength = 4, maxLength = 20)
    private String account;

    /**
     * 登录密码
     */
    @NotBlank(message = "登录密码不能为空")
    @Schema(description = "登录密码", required = true, example = "123456", minLength = 6, maxLength = 32)
    private String password;
}
